{load_language_text section="cashflowtech"}
{if $content_data.cft_messages} {foreach $content_data.cft_messages as $message}
{$message.content}
{/foreach} {/if} {foreach from=$content_data.collections item=collection}

{$txt.base_data}
{foreach $collection.details.base_data as $baseDataKey => $baseDataValue} {$baseDataKeyLabel="base_data_{$baseDataKey}"}
{$txt.$baseDataKeyLabel} | {$baseDataValue}
{/foreach}
{$txt.detail_data} (ID {$collection.details.detail_data.id})
{$txt.detail_data_file_reference} | {$collection.details.detail_data.file_reference_1} / {$collection.details.detail_data.file_reference_2} / {$collection.details.detail_data.file_reference_3}
{$txt.detail_data_role} | {$collection.details.detail_data.role}
{$txt.detail_data_contact_data} | {$collection.details.detail_data.contact_data.first_name} {$collection.details.detail_data.contact_data.last_name} {$collection.details.detail_data.contact_data.street} {$collection.details.detail_data.contact_data.housenumber} {$collection.details.detail_data.contact_data.postalcode} {$collection.details.detail_data.contact_data.city} {$collection.details.detail_data.contact_data.country}
{$txt.bookings}
{if !$collection.details.booking_data}
{$txt.no_bookings}
{else}
{$txt.booking_data_id} | {$txt.booking_data_amount} | {$txt.booking_data_created_at} | {$txt.booking_data_type_id} | {$txt.booking_data_type_description} | {$txt.booking_data_reversal_of_id}
--- | --- | --- | --- | --- | ---
{foreach from=$collection.details.booking_data item=bookingRow}
{$bookingRow.id} | {$bookingRow.amount} | {$bookingRow.created_at} | {$bookingRow.type_id} | {$bookingRow.type_description} | {$bookingRow.reversal_of_id}
{if !$bookingRow.reversal_of_id && $bookingRow.type_description !== 'reversal'}
{$txt.reverse_payment_amount} | EUR |
{/if} {/foreach}
{/if} {if $collection.payment_data}
{$txt.payment_data}
{$txt.payment_data_id} | {$txt.payment_data_amount} | {$txt.payment_data_created_at} | {$txt.payment_data_type_id}/{$txt.payment_data_type_description} | {$txt.payment_data_reversal_of_id} | {$txt.payment_data_booking_id_incoming} | {$txt.payment_data_booking_id_used}
--- | --- | --- | --- | --- | --- | ---
{foreach from=$collection.payment_data item=paymentRow}
{$paymentRow.id} | {$paymentRow.amount} | {$paymentRow.created_at} | {$paymentRow.type_id}/{$paymentRow.type_description} | {$paymentRow.reversal_of_id} | {$paymentRow.booking_id_incoming} | {$paymentRow.booking_id_used}
{/foreach}
{/if} {if $collection.booking_data_relevant}
{$txt.booking_data_relevant}
<{$txt.booking_data_relevant_id} | <{$txt.booking_data_relevant_amount} | <{$txt.booking_data_relevant_created_at} | <{$txt.booking_data_relevant_type_id} | <{$txt.booking_data_relevant_type_description} | <{$txt.booking_data_relevant_reversal_of_id}
--- | --- | --- | --- | --- | ---
{foreach from=$collection.booking_data_relevant item=bookingRelevantRow}
{$bookingRelevantRow.id} | {$bookingRelevantRow.amount} | {$bookingRelevantRow.created_at} | {$bookingRelevantRow.type_id} | {$bookingRelevantRow.type_description} | {$bookingRelevantRow.reversal_of_id}
{/foreach}
{/if} {if $collection.payment_data_relevant}
{$txt.payment_data_relevant}
{$txt.payment_data_relevant_id} | {$txt.payment_data_relevant_amount} | {$txt.payment_data_relevant_created_at} | {$txt.payment_data_relevant_type_id}/{$txt.payment_data_relevant_type_description} | {$txt.payment_data_relevant_reversal_of_id} | {$txt.payment_data_relevant_booking_id_incoming} | {$txt.payment_data_relevant_booking_id_used}
--- | --- | --- | --- | --- | --- | ---
{foreach from=$collection.payment_data_relevant item=paymentRelevantRow}
{$paymentRelevantRow.id} | {$paymentRelevantRow.amount} | {$paymentRelevantRow.created_at} | {$paymentRelevantRow.type_id}/{$paymentRelevantRow.type_description} | {$paymentRelevantRow.reversal_of_id} | {$paymentRelevantRow.booking_id_incoming} | {$paymentRelevantRow.booking_id_used}
{/foreach}
{/if}
{$txt.new_payment}
{$txt.new_payment} |
{$txt.new_payment_amount} | EUR
{$txt.new_payment_type} |

{/foreach}